The free Lagrangian is the part of the Lagrangian density that is quadratic in the fields — it describes particles that propagate without interacting. It fixes the propagator and the mass, and it is the starting point onto which interactions are added (in QCD, via the gauge principle).
For a single quark flavour, ignoring color coupling, the free Lagrangian is the Dirac Lagrangian
a spinor bilinear that is Lorentz invariant and yields the free Dirac equation \((i\gamma^\mu\partial_\mu-m)\psi=0\).
Because the quark is a three-component object in color space, \(\psi=(\psi_r,\psi_g,\psi_b)^T\), the free Lagrangian is a sum over colors (and over the six flavours \(f\)),
which is diagonal in color: the free theory has no interaction mixing the colors. Note it is invariant under a global \(SU(3)\) rotation \(\psi\to e^{i\alpha^aT^a}\psi\) with constant \(\alpha^a\), but not under a local one — the derivative spoils local invariance.
Demanding local gauge invariance forces the replacement \(\partial_\mu\to D_\mu=\partial_\mu-igA_\mu\). The free Lagrangian then becomes
exposing the quark–gluon coupling as the unique minimal interaction. Adding the gluon kinetic term completes \(\mathcal{L}_{QCD}\).